﻿@model CharacterCreation.Business.ViewModels.VMSpecial

@{
    ViewBag.Title = "Edit";
}

<h2>Edit @Model.Title</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        @if (!(bool)ViewBag.IsValid)
        {
            <div class="validation-block" >
                @Html.ValidationMessageFor(model => model.Name)
            </div>
        }

        <dl>
            <hr />

            <dt>@Html.LabelFor(model => model.Name)</dt>
            <dd>@Html.EditorFor(model => model.Name)</dd>
            
            <hr />
            
            <dt>@Html.LabelFor(model => model.PriorityPoints)</dt>
            <dd>@Html.EditorFor(model => model.PriorityPoints)</dd>

            <hr />
            
            <dt>@Html.LabelFor(model => model.Category)</dt>
            <dd>@Html.EnumDropDownListFor(model => model.Category)</dd>
            
            <hr />

            <dt>@Html.LabelFor(model => model.Description)</dt>
            <dd>@Html.EditorFor(model => model.Description)</dd>

            <hr />
            
            <dt>Strength</dt>
            <dd>@Html.EditorFor(model => model.Strength)</dd>
            <hr />
            <dt>Dexterity</dt>
            <dd>@Html.EditorFor(model => model.Dexterity)</dd>
            <hr />
            <dt>Fighting</dt>
            <dd>@Html.EditorFor(model => model.Fighting)</dd>
            <hr />
            <dt>Constitution</dt>
            <dd>@Html.EditorFor(model => model.Constitution)</dd>
            <hr />
            <dt>Perception</dt>
            <dd>@Html.EditorFor(model => model.Perception)</dd>
            <hr />
            <dt>Intelligence</dt>
            <dd>@Html.EditorFor(model => model.Intelligence)</dd>
            <hr />
            <dt>WillPower</dt>
            <dd>@Html.EditorFor(model => model.WillPower)</dd>
            <hr />
            <dt>Charisma</dt>
            <dd>@Html.EditorFor(model => model.Charisma)</dd>

            <hr />
            
            <input type="submit" value="Save" />
        </dl>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
